package cate.common.table.item.spice.sheet;

import cate.common.table.ESheet;
import cate.common.table.item.spice.row.SpiceFuseRow;

public class SpiceFuseSheet extends ESheet<SpiceFuseRow> {
    @Override
    public String getSheetName() {
        return "星格融合";
    }

    public SpiceFuseRow getFuseRow(int spice1, int spice2) {
        return getList().stream().filter(e -> (e.costSpice1 == spice1 && e.costSpice2 == spice2) || (e.costSpice1 == spice2 && e.costSpice2 == spice1)).findAny().orElse(null);
    }
}
